package com.leisurexi.ioc.context;

import com.leisurexi.ioc.domain.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author: leisurexi
 * @date: 2020-07-05 11:46
 * @since JDK 1.8
 */
public class ClassPathXmlApplicationContextDemo {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("META-INF/classpath-xml-application-context.xml");
		User user = context.getBean("user", User.class);
		System.err.println(user);
	}

}
